import request from '@/utils/request'

//banner管理
/**
 * 获取菜单树形
 * @param {page,limit,type,keywords} data 
 * @returns 
 */

export function couponList(data) {
    return request({
        url: '/admin/coupon/couponList',
        method: 'post',
        data
    })
}

export function deletCoupon(data) {
    return request({
        url: '/admin/coupon/delCoupon',
        method: 'post',
        data
    })
}

export function addCoupon(data) {
    return request({
        url: '/admin/coupon/addCoupon',
        method: 'post',
        data
    })
}

export function editCoupon(data) {
    return request({
        url: '/admin/coupon/editCoupon',
        method: 'post',
        data
    })
}

export function boxList(data) {
    return request({
        url: '/admin/box/box/boxList',
        method: 'post',
        data
    })
}

export function sendCoupon(data) {
    return request({
        url: '/admin/coupon/sendCoupon',
        method: 'post',
        data
    })
}

export function sendList(data) {
    return request({
        url: '/admin/coupon/sendLog',
        method: 'post',
        data
    })
}

export function allSend(data) {
    return request({
        url: '/admin/coupon/importCoupon',
        method: 'post',
        data
    })
}